package com.tomshushu.doc.freedoc.modular.version.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tomshushu.doc.freedoc.core.model.result.PageResult;
import com.tomshushu.doc.freedoc.modular.version.entity.VersionEntity;
import com.tomshushu.doc.freedoc.modular.version.param.AddVersionParam;
import com.tomshushu.doc.freedoc.modular.version.param.PageVersionParam;
import com.tomshushu.doc.freedoc.modular.version.param.RebackVersionParam;

/**
 * @description:
 * @author: zhouhong
 * @date: 2025-06-10 17:25
 * @version: 1.0
 */
public interface VersionService extends IService<VersionEntity> {
    /**
     * 添加版本
     * @param param
     */
    void addVersion(AddVersionParam param);
    /**
     * 回退版本
     * @param param
     */
    void rebackVersion(RebackVersionParam param);
    /**
     * 获取当前文档的版本列表
     * @param param
     * @return
     */
    PageResult<VersionEntity> pageVersion(PageVersionParam param);
}